/*     */ package com.cr.business.service.impl;
/*     */ 
/*     */ import com.cr.business.domain.CrAnswer;
/*     */ import com.cr.business.dto.UserAanwerDto;
/*     */ import com.cr.business.mapper.CrAnswerMapper;
/*     */ import com.cr.business.service.ICrAnswerService;
/*     */ import com.cr.common.core.text.Convert;
/*     */ import com.cr.common.utils.MyDateUtils;
/*     */ import java.util.List;
/*     */ import org.springframework.beans.factory.annotation.Autowired;
/*     */ import org.springframework.stereotype.Service;
/*     */ 
/*     */ @Service
/*     */ public class CrAnswerServiceImpl implements ICrAnswerService {
/*     */   @Autowired
/*     */   private CrAnswerMapper crAnswerMapper;
/*     */   
/*     */   public CrAnswer selectCrAnswerByAnswerId(Long answerId) {
/*  35 */     return this.crAnswerMapper.selectCrAnswerByAnswerId(answerId);
/*     */   }
/*     */   
/*     */   public List<CrAnswer> selectCrAnswerList(CrAnswer crAnswer) {
/*  47 */     return this.crAnswerMapper.selectCrAnswerList(crAnswer);
/*     */   }
/*     */   
/*     */   public int insertCrAnswer(CrAnswer crAnswer) {
/*  59 */     crAnswer.setCreateTime(MyDateUtils.getNowDate());
/*  60 */     return this.crAnswerMapper.insertCrAnswer(crAnswer);
/*     */   }
/*     */   
/*     */   public int updateCrAnswer(CrAnswer crAnswer) {
/*  72 */     crAnswer.setUpdateTime(MyDateUtils.getNowDate());
/*  73 */     return this.crAnswerMapper.updateCrAnswer(crAnswer);
/*     */   }
/*     */   
/*     */   public int deleteCrAnswerByAnswerIds(String answerIds) {
/*  85 */     return this.crAnswerMapper.deleteCrAnswerByAnswerIds(Convert.toStrArray(answerIds));
/*     */   }
/*     */   
/*     */   public int deleteCrAnswerByAnswerId(Long answerId) {
/*  97 */     return this.crAnswerMapper.deleteCrAnswerByAnswerId(answerId);
/*     */   }
/*     */   
/*     */   public List<UserAanwerDto> selectAnswerUser(Long questionId) {
/* 106 */     return this.crAnswerMapper.selectAnswerUser(questionId);
/*     */   }
/*     */ }


/* Location:              D:\tmp\creditorRights-admin\BOOT-INF\lib\creditorRights-business-4.7.0.jar!\com\cr\business\service\impl\CrAnswerServiceImpl.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */